import os
# 设置开启启动项启动函数
def open_startup_settings():
    try:
        os.startfile("ms-settings:startupapps")  
    except OSError:
        print("Failed to open startup apps settings.")  
# 执行函数
open_startup_settings()  
